export default {
    '/': {
        meta: {
            title: '主页'
        },
        component: (resolve) => {
            require(['pages/index'], resolve)
        },
        children: [
            {
                path: 'home',
                meta: {
                    title: '首页'
                },
                component: (resolve) => {
                    require(['pages/home'], resolve)
                }
            },
            {
                path: 'user',
                meta: {
                    title: '用户管理'
                },
                component: (resolve) => {
                    require(['pages/details'], resolve)
                },
                children: [
                    {
                        path: 'list',
                        meta: {
                            title: '用户列表'
                        },
                        component: (resolve) => {
                            require(['pages/user/list'], resolve)
                        }
                    },
                    {
                        path: 'enter',
                        meta: {
                            title: '入驻申请列表'
                        },
                        component: (resolve) => {
                            require(['pages/user/enter/list'], resolve)
                        }
                    },
                    {
                        path: 'enterInfo',
                        meta: {
                            title: '入驻申请详情'
                        },
                        component: (resolve) => {
                            require(['pages/user/enter/info'], resolve)
                        }
                    },
                    {
                        path: 'enterAudit',
                        meta: {
                            title: '入驻申请审核'
                        },
                        component: (resolve) => {
                            require(['pages/user/enter/info'], resolve)
                        }
                    }]
            },
            {
                path: 'account',
                meta: {
                    title: '权限管理'
                },
                component: (resolve) => {
                    require(['pages/details'], resolve)
                },
                children: [
                    {
                        path: 'admin',
                        meta: {
                            title: '管理员列表'
                        },
                        component: (resolve) => {
                            require(['pages/account/admin'], resolve)
                        }
                    },
                    {
                        path: 'role',
                        meta: {
                            title: '角色列表'
                        },
                        component: (resolve) => {
                            require(['pages/account/role'], resolve)
                        }
                    },
                    {
                        path: 'menu',
                        meta: {
                            title: '菜单列表'
                        },
                        component: (resolve) => {
                            require(['pages/account/menu'], resolve)
                        }
                    }]
            }
        ]
    },
    '/login': {//客户
        meta: {
            title: '登录'
        },
        component: (resolve) => {
            require(['pages/account/login'], resolve)
        }
    }
}
